package com.tmeone.erpone.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tmeone.erpone.entity.TOrder;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tmeone.erpone.entity.TOrder;

import java.util.List;

import java.time.LocalDateTime;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tmeone
 * @since 2021-04-19
 */
public interface ITOrderService extends IService<TOrder> {
    //分页,状态,模糊综合查询
    IPage<TOrder> getPageAll(IPage<TOrder> page,String orderState,String orderId,String dealTime);
    //根据日期或产能排序
    IPage<TOrder> getSortPage(IPage<TOrder> page,String list);
    //订单修改
    void updOrder(TOrder order);
    /**
     * 获取所有订单
     * 作者：wzs
     * @param page 当前页数
     * @param orderType 订单类型
     * @param orderStatus 订单状态
     * @param orderId 订单id
     * @param dealTime 交易时间
     * @return 所有订单
     */
    IPage<TOrder> selectAllByOrderTypeAndOrderStatusAndOrderIdLikeAndDealTime(Page<TOrder> page, String orderType, String orderStatus, String orderId, String dealTime);

    //代发货订单详情分页查询
    IPage<TOrder> pageTOrderGo(IPage<TOrder> page);

    List<TOrder> selectOrderByOrderId(String orderId);
}
